[SUBROUTINE]
version = 1.14
icon = slot-2.png
name = _("Slot/oval 2 points")
type = slot-2points
help = _("<b>Creates a Slot between two end points</b>")
order = act fc h1 x1 y1 x2 y2 w h2 opt dir

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
value = 1

[PARAM_FC]
name = _("Show design")
icon = glasses.png
type = bool
value = 1

[PARAM_H1]
name = _("Coords, size")
type = sub-header

[PARAM_X1]
name = _("X1")
header = h1
type = float
icon = x.png
tool_tip = _("First point")
value = 0
metric_value = 0

[PARAM_Y1]
name = _("Y1")
header = h1
type = float
icon = y.png
tool_tip = _("First point")
value = 0
metric_value = 0

[PARAM_X2]
name = _("X2")
header = h1
type = float
icon = x.png
tool_tip = _("Second point")
value = 2
metric_value = 50

[PARAM_Y2]
name = _("Y2")
header = h1
type = float
icon = y.png
tool_tip = _("Second point")
value = 1
metric_value = 25

[PARAM_W]
name = _("Width")
header = h1
type = float
icon = oval-d.png
tool_tip = _("Width of slot")
value = 0.5
metric_value = 12
minimum_value = 0
not_allowed = 0

[PARAM_H2]
name = _("Cutting")
type = sub-header

[PARAM_OPT]
name = _("Option")
type = combo
options = _("Inside=0:On the line=2:Outside=3")
icon = g4x.png
tool_tip = _("Select tool path")
value = 0
header = h2

[PARAM_DIR]
name = _("Direction")
header = h2
type = combo
options = _("Clockwise=2:Counter-Clockwise=3")
icon = cw-ccw.png
tool_tip = _("Direction of path")
value = 3

[DEFINITIONS]
content =
;	<eval>self.include_once(file name here)</eval>

[CALL]
content =
	(begin #sub_name)
	(slot between two points author : Fernand Veilleux)
	o<#self_id_active> if [#param_act] (if active)
		#<w#ID>   = [#param_w]
		
		o<line> CALL [#param_x1] [#param_y1] [#param_x2] [#param_y2]
 		o<rectangle> CALL [#param_x1] [#param_y1] [#<_line_len> + #<w#ID>] [#<w#ID>] [#<_line_phi>] [#<_line_len> / 2] [0] [1] [#<w#ID> / 2] [#param_opt] [#param_dir] [#<pl_cut_start>] [#<surface>] [#<bottom>] [#param_fc]
	o<#self_id_active> endif
	(end #sub_name)
